﻿namespace PLC.Interface.Variables
{
    public class VariableResultDto : VariableDto
    {
        public ushort UStartIndex
        {
            get { return (ushort)StartIndex; }
        }

        public ushort UOffsetOrLength
        {
            get { return (ushort)OffsetOrLength; }
        }

        /// <summary>
        /// 组名称(扩展属性)
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 变量值
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// 上升沿缓存值
        /// </summary>
        public bool PosCacheValue { get; set; }

        /// <summary>
        /// 下降沿缓存值
        /// </summary>
        public bool NegCacheValue { get; set; }
    }
}
